//
//  FPLoanHeaderView.m
//  FinanceProject
//
//  Created by 陈显摆 on 2025/1/23.
//

#import "FPLoanHeaderView.h"

@implementation FPLoanHeaderView

- (void)awakeFromNib {
    
    [super awakeFromNib];
    
    self.backgroundColor = UIColor.clearColor;
    
    self.view1.clipsToBounds = YES;
    self.view1.layer.cornerRadius = 8.f;
    self.view1.backgroundColor = UIColor.whiteColor;
    
    self.view2.clipsToBounds = YES;
    self.view2.layer.cornerRadius = 8.f;
    self.view2.backgroundColor = UIColor.whiteColor;
    
    self.view3.clipsToBounds = YES;
    self.view3.layer.cornerRadius = 8.f;
    self.view3.backgroundColor = UIColor.whiteColor;
    
    self.titleLab.textColor = [UIColor hexColor:@"#6A6A6A"];
    
    self.tipLab3.textColor = [UIColor hexColor:@"#3A3A3A"];
    self.tipLab5.textColor = [UIColor hexColor:@"#3A3A3A"];
    self.tipLab6.textColor = [UIColor hexColor:@"#3A3A3A"];
    self.tipLab7.textColor = [UIColor hexColor:@"#3A3A3A"];
    self.tipLab4.textColor = [UIColor hexColor:@"#3A3A3A"];
    
    self.periodLab.textColor = [UIColor hexColor:@"#3A3A3A"];
    self.repayPlanLab.textColor = [UIColor hexColor:@"#3A3A3A"];
    self.bankCardLab.textColor = [UIColor hexColor:@"#3A3A3A"];
    self.purposeLab.textColor = [UIColor hexColor:@"#3A3A3A"];
    self.rateLab.textColor = [UIColor hexColor:@"#3A3A3A"];
    
    self.lineView1.backgroundColor = [UIColor hexColor:@"#3A3A3A"];
    self.lineView3.backgroundColor = [[UIColor hexColor:@"#DEDEDE"] colorWithAlphaComponent:.5f];
    self.lineView5.backgroundColor = [[UIColor hexColor:@"#DEDEDE"] colorWithAlphaComponent:.5f];
    self.lintView4.backgroundColor = [[UIColor hexColor:@"#DEDEDE"] colorWithAlphaComponent:.5f];
    self.lineView6.backgroundColor = [[UIColor hexColor:@"#DEDEDE"] colorWithAlphaComponent:.5f];
    
    self.borrowAllBtn.clipsToBounds = YES;
    self.borrowAllBtn.layer.cornerRadius = 10.f;
    self.borrowAllBtn.layer.borderWidth = 1.f;
    self.borrowAllBtn.layer.borderColor = [UIColor hexColor:@"#9A9A9A"].CGColor;
    [self.borrowAllBtn setTitleColor:[UIColor hexColor:@"#9A9A9A"] forState:(UIControlStateNormal)];
    self.borrowAllBtn.backgroundColor = UIColor.whiteColor;
    
    self.tipTitleLa.textColor = [UIColor hexColor:@"#9A9A9A"];
    self.tipContentLab.textColor = [UIColor hexColor:@"#9A9A9A"];
    
    self.noticeLab.textColor = UIColor.redColor;
    
    NSString *text1 = @"1、无论以何种理由要求您在众鑫花申请借款并把资金打入陌生账户、安全账户的行为都是诈骗犯罪，切勿上当受骗！";
    NSString *text2 = @"2、请注意您的到期还款时间，合理安排资金进行还款，避免逾期影响您的个人信用。";
    NSString *text3 = @"3、众鑫花的还款方式为等额本息的分期还款方式，每期分期利息=剩余应还本金X分期折算年化利率/12。平均每期分期利息=分期利息/分期期数。";
    NSString *text4 = @"4、本次借款仅限用于个人消费，不得用于购房、股票等投资领域。请保留本次借款资金消费凭证，必要时众鑫花会主动联系您对您的消费用途进行核查。";
    NSString *text5 = @"5、根据相关法律法规，为不影响您的正常业务办理，请确保您在众鑫花留存的身份证件在有效期内。若您在众鑫花留存的身份证件已过有效期，可登陆众鑫花APP进入实名认证页完成资料更新。谢谢您的合作！";
    
    self.tipContentLab.text = [NSString stringWithFormat:@"%@ \n\n%@ \n\n%@ \n\n%@ \n\n%@", text1 , text2 , text3 , text4 , text5];
}

@end
